package com.eci.example.feign;


import com.eci.common.asset.core.R;
import com.eci.example.constant.ExampleErrorCode;
import com.eci.example.feign.fallback.ExampleFeignFallBack;
import com.eci.example.vo.ExampleReq;
import com.eci.example.vo.ExampleRsp;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(name = ExampleErrorCode.SYS_CODE+"/example", fallback = ExampleFeignFallBack.class)
public interface ExampleFeign {

    @PostMapping("/add")
    @ResponseBody
    public R<ExampleRsp> add(@RequestBody ExampleReq req);

}
